package com.studerb.events;

import com.studerb.model.Server;

public class ServerEvent {
    public enum EventType {
        ADDED, DELETED, UPDATED
    }
    private Server server;
    private ServerEvent.EventType type;

    public ServerEvent(Server server, ServerEvent.EventType type) {
        this.server = server;
        this.type = type;
    }

    public ServerEvent(ServerEvent.EventType type) {
        this.server = null;
        this.type = type;
    }

    public Server getServer() {
        return this.server;
    }

    public EventType getType() {
        return this.type;
    }

}
